var html=require("html-webpack-plugin");
var path=require('path');
module.exports={
  entry:{
    build:"./es6/index.js",
  },
  output:{
    path:path.resolve("./es6_build"),
    filename:"[name].js"
  },
  module:{
    loaders:[
      {
        test:/.css$/,
        loaders:["style-loader","css-loader"],
        exclude:"/node_modules/"
      },
      {
        test:/.js$/,
        loaders:['babel-loader'],
        exclude:"/node_modules/",
        include:path.resolve(__dirname,"/es6/")
      }
    ]
  },
  /*
  devServer:{
    hot:true,
    inline:true,
  },
  resolve:{
    extensions:['.js','.css','.jsx']
  },
  */
  plugins:[
    new html({
      title:"这是测试babel",
      chunks:["es6"]
    })
  ]

}
